import actions from './actions'
const microApps = [
  {
    name: 'wmsApp',
    entry: '/baseWms/', //本地http://localhost:9002:baseWms
    activeRule: '/wms'
  }
  // {
  //   name: 'app-vue1',
  //   entry: '//localhost:8003/app-vue1/',
  //   activeRule: '/app-vue1'
  // }
]
const apps = microApps.map(app => {
  return {
    ...app,
    container: '#app-micro',
    props: {
      routerBase: app.activeRule, // 下发基础路由
      temmpData: { name: '小强', age: 25 },
      parentActions: actions
    },
    loader(loading) {
      console.log('loading', loading)
    }
  }
})
export default apps

